package nc.bs.mmpac.sumpickm.rule;

import nc.impl.pubapp.pattern.rule.IRule;
import nc.util.mmf.framework.base.MMValueCheck;
import nc.vo.mmpac.reqpickm.entity.AggReqPickmVO;
import nc.vo.mmpac.reqpickm.entity.ReqPickmHeadVO;
import nc.vo.mmpac.sumpickm.entity.AggSumPickmVO;
import nc.vo.mmpac.sumpickm.entity.SumPickmHeadVO;
import nc.vo.pubapp.AppContext;

public class SumPickmMakeDateRule implements IRule<AggSumPickmVO> {

	@Override
	public void process(AggSumPickmVO[] vos) {
		if(MMValueCheck.isEmpty(vos))
		{
			return ;
		}
		  for (AggSumPickmVO aggVO : vos) {
	            SumPickmHeadVO headVO = (SumPickmHeadVO) aggVO.getParent();
	            headVO.setBillmaker(AppContext.getInstance().getPkUser());
	            headVO.setDmakedate(AppContext.getInstance().getBusiDate());
	        }

	}

}
